// const { default: VueRouter } = require("vue-router");
import Vue from "vue";
import VueRouter from "vue-router";
import ShouYe from "../views/ShouYe.vue";
import SheQu from "../views/SheQu.vue";
import XiaoXi from "../views/XiaoXi.vue";
import MeiGou from "../views/MeiGou.vue";
import WoDe from "../views/WoDe.vue";
import LoGin from "@/views/LoGin.vue";
import QianDao from "../views/ShouYe/QianDao.vue";
import RiJi from "../views/ShouYe/RiJi.vue";
import ZhengXin from "../views/ShouYe/ZhengXin.vue";
import YiSheng from "../views/ShouYe/YiSheng.vue";
import DuJia from "../views/ShouYe/DuJia.vue";

Vue.use(VueRouter);
export default new VueRouter({
    mode:"history",
    routes:[
        {
            path:'/shouye',
            name:'shouye',
            component:ShouYe
        },{
            path:'/shequ',
            name:'shequ',
            component:SheQu
        },{
            path:'/xiaoxi',
            name:'xiaoxi',
            component:XiaoXi
        },{
            path:'/meigou',
            name:'meigou',
            component:MeiGou
        },{
            path:'/wode',
            name:'wode',
            component:WoDe
        },{
            path:'/qiandao',
            name:'qiandao',
            component:QianDao
        },{
            path:'/riji',
            name:'riji',
            component:RiJi
        },{
            path:'/zhengxin',
            name:'zhengxin',
            component:ZhengXin
        },{
            path:'/yisheng',
            name:'yisheng',
            component:YiSheng
        },{
            path:'/dujia',
            name:'dujia',
            component:DuJia
        },{
            path:'/login',
            name:'login',
            component:LoGin
        },{
            path:'/',
            redirect:{
                path:'/login'
            }
        },

    ]
})